// $Id: GroupInput.java 26 2011-09-19 19:12:53Z huijzer@gmail.com $
package lime.group.editor;

import lime.model.Group;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;

public class GroupInput implements IEditorInput {

	private Group group;
	
	public GroupInput(Group group) {
		this.group = group;
	}
	
	
	public Group getGroup() {
		return group;
	}
	
	@SuppressWarnings("rawtypes")
	@Override
	public Object getAdapter(Class adapter) {
		return null;
	}

	@Override
	public boolean exists() {
		return false;
	}

	@Override
	public ImageDescriptor getImageDescriptor() {
		return null;
	}

	@Override
	public String getName() {
		return group.getObjectName();
	}

	@Override
	public IPersistableElement getPersistable() {
		return null;
	}

	@Override
	public String getToolTipText() {
		return group.getObjectName();
	}

}
